import request from '@/utils/request';

export function getAllDept() {
  return request({
    url: '/museum-role/dept/getAllDept',
    method: 'get'
  });
}

export function addDept(params) {
  return request({
    url: '/museum-role/dept/addDept',
    method: 'post',
    data: params
  });
}

export function updateDept(params) {
  return request({
    url: '/museum-role/dept/updateDept',
    method: 'put',
    data: params
  });
}

export function deleteDept(deptId) {
  return request({
    url: `/museum-role/dept/deleteDept?deptId=${deptId}`,
    method: 'delete'
  });
}
